
package com.tuanzi.loan.business.service.family;

import com.tuanzi.loan.vo.request.family.IcpWebCommentSearchRequest;
import com.tuanzi.loan.vo.response.family.IcpWebCommentSearchResponse;
import com.tuanzi.loan.core.vo.PageSearcher;
import org.springframework.data.domain.Page;

/**
 * ICP备案网站评论 ServiceInterface
 * @author JinRuiyang 2017/12/13 11:59:48
 */
public interface IcpWebCommentService {

    int Published = 1;
    int UnPublish = 0;

    int Enabled = 1;
    int Disabled = 0;

    /**
     * 更新评论的发布状态
     * @param id 评论id
     * @param status 状态值
     */
    void updatePublishStatus(Long id, Integer status);

    /**
     * 更新评论的可用状态
     * @param id 评论id
     * @param status 状态值
     */
    void updateEnableStatus(Long id, Integer status);

    /**
     * ICPWebComment查询
     * @param pageSearcher 请求信息
     * @return 响应列表
     */
    Page<IcpWebCommentSearchResponse> list(PageSearcher<IcpWebCommentSearchRequest> pageSearcher);
}
